package br.ita.doacoes.view.controledoacoes;

import br.ita.doacoes.core.cadastrodoacoes.dao.ItemDAO;
import br.ita.doacoes.core.cadastrodoacoes.dao.impl.ItemDAOImpl;
import br.ita.doacoes.core.cadastrofamilia.dao.GenericDAOJPA;
import br.ita.doacoes.domain.cadastrodoacoes.Item;
import br.ita.doacoes.domain.controledoacoes.DestinoItem;

/**
 * @author Lucas Amaro, Henry e Fleuri
 * @since 04/12/2007
 *
 **/

public class RetiradaItemPanel extends RetiradaItemTemplatePanel {

	public RetiradaItemPanel(){

		super();

		this.setClasse1(Item.class);		
		this.setClasse2(DestinoItem.class);
		this.setXmlTable("retiradaItemTable.xml");
		this.setTableName("RetiradaItemTable");
		this.setFormName("RetiradaItemForm");
		this.setXmlForm("retiradaItemForm.xml");		
		this.setDao(new ItemDAOImpl(Item.class),new GenericDAOJPA(DestinoItem.class, "Retirada de Itens"));
		this.init();
	}
}